import requests


class LoginApi:
    @classmethod
    def login_iHRM(cls, data):
        url = "http://ihrm-test.itheima.net/api/sys/login"
        header = {"Content-Type": "application/json"}
        return requests.post(url=url, json=data, headers=header)


if __name__ == '__main__':
    res = LoginApi.login_iHRM({"mobile": "13800000002", "password": "123456"})
    print(res.json())
